import serviceAxios from "../http";

// 登录
export const login = (data) => {
  return serviceAxios({
    url: "/login",
    method: "post",
    data,
  });
};

//退出登录
export const loginOut = (data) => {
  return serviceAxios({
    url: "/user/logout",
    method: "post",
    data,
  });
};

// 更改密码
export const passwordUpdate = (data) => {
  return serviceAxios({
    url: `/user/password/update`,
    method: "post",
    data,
  });
};
